from datetime import date

from flask import Flask,render_template

app=Flask(__name__)

@app.route("/user")
def user():
    book = "《西游记》"
    time=date.today()
    starring=["唐僧","孙悟空","猪八戒","沙僧"]
    other = {
        "出版社":"中国中信出版社",
        "价格":32.5
    }
    return  render_template("book.html",b=book,t=time,list=starring,other=other)

if __name__ == '__main__':
    app.run()